export const registDataFun = (Element) => {
  Element.registerFunction('data', function (key, value) {
    if (!this._data) {
      this._data = {};
    }
    if (BI.isNull(value)) {
      return this._data[key];
    }
    this._data[key] = value;
    return this;
  });
};
